public class java3_72 {
    public static void main(String[] args) {
        double sum = 0;
        int flag = 1;
        for (double i = 1; i <= 100; i++) {
            sum += (1/i)*flag;
            flag = -flag;
        }
        System.out.println(sum);
    }
}

